package spec.ganlijuan.zuoye_qiu_2;

public class Tast {
    public static void main(String[] args) {
        //Ball_1 是数据类型 和Int long 一样； new + 构造方法  ，对象的数据类型是 ball
        Ball_1 qiua = new Ball_1("篮球", 100,"橡皮", "中青年人群","5cm"
                ,"二氧化碳","凸起");
        Ball_2 nan=new Ball_2("足球", 10,"土", "青年人群","10cm"
                ,"二氧化碳","方");
        System.out.println(qiua.play());
        System.out.println();
        System.out.println(qiua.name()+nan.play(10,1));
        System.out.println();
        System.out.println(nan.name()+nan.play(6));
    }
}